import request from "@/utils/request"

export default {
    // 提交订单
    addOrder(formData) {
        const req = request({
            method: 'post',
            url: '/order/addOrder',
            data: formData,
            headers: {
                'Content-Type': "multipart/form-data"
            }
        })
        return req
    },
    // 获取当前订单
    getCurrentOrders(formData) {
        const req = request({
            method: 'post',
            url: '/order/getCurrentOrders',
            data: formData,
            headers: {
                'Content-Type': "multipart/form-data"
            }
        })
        return req
    },
    // 获取历史订单
    getHistoryOrders(formData) {
        const req = request({
            method: 'post',
            url: '/order/getHistoryOrders',
            data: formData,
            headers: {
                'Content-Type': "multipart/form-data"
            }
        })
        return req
    },
}